package cn.ren.cloud.fallback;

import cn.ren.cloud.domain.CourseOrder;
import cn.ren.cloud.feign.OrderFeignClient;
import cn.ren.cloud.result.JsonResult;
import feign.hystrix.FallbackFactory;

/**
 * @author 23508
 */
public class OrderFeignClientFallbackFactory implements FallbackFactory<OrderFeignClient> {
    @Override
    public OrderFeignClient create(Throwable throwable) {
        return new OrderFeignClient() {
            @Override
            public CourseOrder selectByOrderNo(String orderNo) {
                return new CourseOrder();
            }
        };
    }
}
